only start typeahead search if tree_view has focus (and not one of the
authorKristian Rietveld <kris@imendio.com>
Mon, 10 Sep 2007 09:24:38 +0000 (09:24 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Mon, 10 Sep 2007 09:24:38 +0000 (09:24 +0000)
2007-09-10  Kristian Rietveld  <kris@imendio.com>

* gtk/gtktreeview.c (gtk_tree_view_key_press): only start
typeahead search if tree_view has focus (and not one of the column
buttons).

svn path=/trunk/; revision=18779

ChangeLog
gtk/gtktreeview.c

index aea1015057819305aba7208866736b87832aa5ad..8b6806e19c3042acb45e2070972c3e90fbce0cd8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-10  Kristian Rietveld  <kris@imendio.com>
+
+       * gtk/gtktreeview.c (gtk_tree_view_key_press): only start
+       typeahead search if tree_view has focus (and not one of the column
+       buttons).
+
 2007-09-09  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Remove
index 7795cea30f7eb44c680eb74bdb9c9e07dfb12827..e36af7d64141912893ab2ebedc68b03321eb80c8 100644 (file)
@@ -5340,7 +5340,8 @@ gtk_tree_view_key_press (GtkWidget   *widget,
 
   /* We pass the event to the search_entry.  If its text changes, then we start
    * the typeahead find capabilities. */
-  if (tree_view->priv->enable_search
+  if (GTK_WIDGET_HAS_FOCUS (tree_view)
+      && tree_view->priv->enable_search
       && !tree_view->priv->search_custom_entry_set)
     {
       GdkEvent *new_event;